home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2287 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  45 lines

  1. Path: cstatd.cstat.co.za!usenet
  2. From: Ian Molesworth <panacea@iafrica.com>
  3. Newsgroups: comp.lang.c
  4. Subject: MS C help please - video functions
  5. Date: Sat, 20 Jan 1996 03:38:38 -0800
  6. Organization: Panacea Systems cc
  7. Message-ID: <3100D43E.2239@iafrica.com>
  8. NNTP-Posting-Host: slipper74111.iafrica.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=iso-8859-1
  11. Content-Transfer-Encoding: 8bit
  12. X-Mailer: Mozilla 2.0b5 (Win16; I)
  13.  
  14. Using MS visual C++ 1.5 compiler target system is an embedded 8086 type 
  15. product in a PC type setup. Bios resources are available but limited and 
  16. source is available for modification.
  17.  
  18. Problem: 
  19.   _setvideomode returns (0) - the operation was unsuccessfull (??)
  20.  
  21.   _getvideomode() and printing the results from the structure indicates 
  22. that a mono type display and adapter are connected when in fact I have a 
  23. CGA adapter in 640*200 graphics mode ( mode 6 ).
  24.  
  25.    calling int 10h sub-function 0F returns 80 chars width, mode 6 ,page 
  26. 0.
  27.  
  28.    Because the setvideomode was unsuccesful ( or the underlying data 
  29. about the adapter and display are wrong ) subsequent calls to things like 
  30. _lineto()  _circle() etc etc simply don't work
  31.  
  32.    Microsoft's C seems to gather info about the system config etc in it's 
  33. initial setup code. Trying to debug this data gathering excercise looks 
  34. like a pile of work. Can anyone help with whic bios interrupts may be 
  35. required, Areas of the Bios communications block that may need 
  36. initialising, or any further help with the internal workings of the MS C 
  37. runtime libraries.
  38.  
  39. Thanks in advance.
  40.  
  41. Ian Molesworth     panacea@iaccess.za     Tel  **27 11 452 0002 
  42.    Gold & two diamonds     ZS-GOR LS4   26░08.428s 28░10.155e  
  43. Soaring Society of South Africa Executive comittee & MGC Committee
  44.   "Time is defined to make motion look simple" - A.Einstein
  45.